<g:if test="${loggedInUser}">
  <div class="homePagePanel">
    <div class="panelTop"></div>
    <div class="panelBody">
      <h1><g:message code="loggedIn" default="Logged in: {0}" args="${[loggedInUser]}" /></h1>
    </div>
    <div class="panelBtm"></div>
  </div>
</g:if>
<g:else>
  <div class="homePagePanel">
    <div class="panelTop"></div>
    <div class="panelBody">
      <h1><g:message code="login" default="Login" /></h1>
      <g:form controller="user" action="login">
        <g:message code="email" default="Email" />:<br />
        <input type="text" name="email" value="" /><br />
        <g:message code="password" default="Password" />:<br />
        <input type="password" name="password" value="" />
        <input type="submit" value="${message(code:'login', default:'Login')}" />
      </g:form>
    </div>
    <div class="panelBtm"></div>
  </div>
</g:else>